﻿{{log model}}
<div id="menuBar" data-spy="affix" data-offset-top="213">
    <input type="button" class="btn btn-default" onclick="history.back(2)" value="返回"></input>
    <button class="btn btn-primary pull-right" {{action "save" model}}>保存</button>
</div>
<div class="page-header">
    <h1>知识明细</h1>
</div>
<form class="form-horizontal clearfix" role="form">
    <div class="form-group">
        <label for="iptTitle" class="col-md-2 control-label">标题</label>
        <div class="col-md-10">
            {{view Ember.TextField valueBinding="model.Title" id="iptTitle" class="form-control" placeholder="Title"}}
        </div>
    </div>
    <div class="form-group">
        <label for="iptRemarks" class="col-md-2 control-label">描述</label>
        <div class="col-md-10">
            {{view Ember.TextArea valueBinding="model.Remarks" id="iptRemarks" rows="20" class="form-control" placeholder="Remarks"}}
        </div>
    </div>
    <div class="form-group">
        <label for="iptCases" class="col-md-2 control-label">案例</label>
        <div class="col-md-10">
            {{view Ember.TextArea valueBinding="model.Cases" id="iptCases" rows="10" class="form-control" placeholder="Cases"}}
		</div>
    </div>
	<div class="form-group">
        <label for="selDisposeType" class="col-md-2 control-label">处理类型</label>
        <div class="col-md-10">
            {{view Ember.Select id="selDisposeType" class="form-control"
			   contentBinding="CONST.DisposeTypes"
			   optionValuePath="content.id"
			   optionLabelPath="content.Name"
			   valueBinding="model.DisposeType_ID"}}
        </div>
    </div>
	<div class="form-group">
        <label for="selDisposeType" class="col-md-2 control-label">知识细类</label>
        <div class="col-md-10">
            <div id="d2tcontainer" class="form-control-static">
			{{#each detailType in model.detailTypes}}
				<div {{bind-attr data-id=detailType.id}} class="pull-left">
					<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
					{{detailType.Name}}
				</div>
			{{/each}}
				<a {{action "addDetailType" model}}>添加</a>
			</div>
        </div>
    </div>
</form>

